import request from '@/utils/request'

// 创建用户收款账户
export function createUserReceivingAccount(data) {
  return request({
    url: '/system/user-receiving-account/create',
    method: 'post',
    data: data
  })
}

// 更新用户收款账户
export function updateUserReceivingAccount(data) {
  return request({
    url: '/system/user-receiving-account/update',
    method: 'put',
    data: data
  })
}

// 删除用户收款账户
export function deleteUserReceivingAccount(id) {
  return request({
    url: '/system/user-receiving-account/delete?id=' + id,
    method: 'delete'
  })
}

// 获得用户收款账户
export function getUserReceivingAccount(id) {
  return request({
    url: '/system/user-receiving-account/get?id=' + id,
    method: 'get'
  })
}

// 获得用户收款账户分页
export function getUserReceivingAccountPage(params) {
  return request({
    url: '/system/user-receiving-account/page',
    method: 'get',
    params
  })
}
// 导出用户收款账户 Excel
export function exportUserReceivingAccountExcel(params) {
  return request({
    url: '/system/user-receiving-account/export-excel',
    method: 'get',
    params,
    // responseType: 'blob'
  })
}